{% extends 'base.html' %}
{% load zui %}
{% load my_template %}
{% block title %}城市管理{% endblock %}
{% block left %}{% include 'menu.html' %}{% endblock %}
{% block nav_bar %}
    <li>功能管理</li>
    <li>州管理</li>
{% endblock %}
{% block workarea %}
    {{ form.media }}
    <section>
        <form action="" method="post" enctype="multipart/form-data" class="form form-horizontal">
            {% csrf_token %}
            <article>

                <legend>州管理</legend>
                    {% zui_field form.state_name layout='horizontal' %}
                    {% zui_field form.state_code layout='horizontal' %}
{#                    {% zui_field form.category layout='horizontal' %}#}
                    <input type="hidden" value="{{ category }}" name="category">
                <div class="form-group">
                    <div class="col-md-offset-2 col-md-10">
                        <input type='submit' id='submit' class='btn btn-primary' value='保存'
                               data-loading='稍候...'/>
                    </div>
                </div>
            </article>
        </form>
    </section>
{% endblock %}
{% block js %}
    <script src="{{ STATIC_URL }}javascript/apps/city_tag.js"></script>
{% endblock %}